package com.cdxy.service;

import com.cdxy.enums.KaptchaEnum;

/**
 * @Author: tangy
 * @Date: 2020/2/23 17:02
 */
public interface IEmailService {

    /**
     * 发送邮箱
     *
     * @param businessCode
     * @param email
     */
    void sendEmail(KaptchaEnum.BusinessCode businessCode, String email);

    /**
     * 校验邮箱
     * @param businessCode
     * @param email
     * @param code
     */
    void verifyEmail(KaptchaEnum.BusinessCode businessCode, String email, String code);
}
